Skip to content

fix(lint): a context pack may name a system column the platform injects - #37426

Queued
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-37415-ai-context-injected-columns
Queued

objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-37415-ai-context-injected-columns

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #37415

Clause-②: no (ADR-0160 D3: "A name the published definition lacks is an author defect"; an injected column is in the published definition, so the warning on it was the defect)
Metadata-protocol: none

维护者速读

  • 写资料包的作者:在资料包里写平台自动加的字段(负责人、创建时间等),保存和校验时不再误报「字段不存在」;平台没加的字段照旧提醒。
  • 属于「AI 资料包」专题的跟进,替写资料包的作者解决误报。
  • 出错只会多报或少报一条提醒,资料包照常保存和读取;可以直接撤回。
  • 无。

What changes

Measured first, on one real kernel (the /mcp door, the real protocol, SqlDriver, sys_user registered as the platform registers it): on an object that declares neither owner_id nor created_at, the served object listing carries both (plus organization_id, created_by, updated_at, updated_by, owning_business_unit_id, queue), and get_record_context answers owner_id and created_at in the root's fields and in a related list's fields (owner_id as a lookup entry, its value marked notVisible because the harness caller cannot open the sys_user row, as for any lookup whose target row it cannot read), filters the list by a where on owner_id (one of two rows came back, the caller's) and orders it by created_at. On an ownership: 'org' object the listing carries no owner_id and the tool leaves it out. So the runtime carries injected columns, and the warning was false.

  • packages/lint/src/validate-ai-context.ts: fieldMapOf now returns the effective map, the declared fields plus injectedColumnDefsFor(object) (this package's one indirection over the spec's injectedSystemColumnDefs, the tables applySystemFields and the served read's applyInjectedSystemColumns spread), a declared field winning. Every place the rule reads a field map reads it: root fields, body.field, related fields, where, orderBy, and the related link. The orderBy sortability projection now reads the same effective map instead of the declared fields.
  • Consequences, each matching the runtime: a body.field naming an injected column is judged by its type (ai-context-body-not-long-text, as the executor reads the served definition); on a related list whose root is a sys_* object, the child's injected references to it (owner_id, created_by, updated_by to sys_user) count as links, as resolveRelatedLink counts them over the published definition, so a child with one declared reference and no field is reported as having several. No non-sys_* root is affected: every injected reference points at a sys_* object.
  • A column the platform does not inject on that object is still reported: owner_id under ownership: 'org' / 'none', every system column under systemFields: false.
  • .changeset/37415-ai-context-injected-columns.md: @objectstack/lint patch.

Read first (by risk)

  1. packages/lint/src/validate-ai-context.ts, the fieldMapOf hunk: the merge direction (declared wins) and the sortability line.
  2. packages/lint/src/validate-ai-context.test.ts, the four new cases, especially the sys_* root link case.
  3. packages/services/service-record-context/src/__tests__/injected-system-columns.test.ts: the executor half over a door serving the registry-injected shape.

Two-minute verification

pnpm --filter @objectstack/lint exec vitest run src/validate-ai-context.test.ts shows 22 passed, including "an injected system column the object does not declare is no unknown field (owner_id, created_at)".

Tests

  • packages/lint/src/validate-ai-context.test.ts: owner_id, created_at, created_by in root fields, related fields, where, orderBy on objects that do not declare them: no finding. ownership: 'org' keeps owner_id unknown in all four places; systemFields: false keeps created_at unknown. body.field: 'created_at' is ai-context-body-not-long-text. sys_* root: injected references count as links.
  • packages/services/service-record-context/src/__tests__/injected-system-columns.test.ts (new, read-only use of the service): over the fake door serving injectedSystemColumnDefs merged under the declared fields, the executor answers owner_id (with the sys_user display) and created_at in root and related fields, filters by where: { owner_id } and orders by created_at desc; the same pack over a door serving declared fields only leaves every such name and the list out, silently.

Acceptance notes

  • Acceptance bullet 1 (a test pins the lint verdict for owner_id on an object that does not declare it, matching the measured runtime answer): the first new lint case; the measured runtime answer is quoted in a comment above it and in the service test's header.
  • Corroboration: the real-kernel harness on sibling PR fix(service-record-context): get_record_context leaves out an unserved related child; both MCP doors supply queryableFieldsOf and their page cap #37412 shows the executor and both MCP doors read a related list ordered by created_at on an object that does not declare it, while the rule warned ai-context-field-unknown: the same runtime answer for created_at in orderBy, measured independently. owner_id was measured here.
  • Measurement method: the real-kernel reading was a scratch copy of the real-protocol harness in packages/runtime/src/mcp-record-context-tools-bridge.test.ts, run once and deleted, never committed (packages/runtime/** is fenced for this card). The committed pin of the executor half is the new service test over the fake door.
  • Without sys_user registered (a composition the platform never ships), naming owner_id refuses the whole call PERMISSION_DENIED ("reads an object you cannot read"): owner_id is a lookup to sys_user, and an unreadable lookup target refuses the call, as for any lookup. Measured, noted, not filed.
  • The os explain text for ai-context-field-unknown (packages/lint/src/rule-explanations.ts) still says "a name the object does not define"; it is outside this card's file surface and stays correct in substance (an injected column is defined on the object). Noted, not changed.
  • An ADR-0015 external object carries injected columns with no storage behind them; this rule now lets a pack name one (the published definition carries it, so the executor plans it), and the read degrades at query time. The provenance warning other rules give (unprovisionedInjectedColumnsFor) is not wired into this rule. Filed as 37415 跟进:资料包校验对外部对象的注入字段给出「无存储」提醒,并合并测试文件 #37432 (an own rule id and an os explain entry), which also carries folding injected-system-columns.test.ts into record-context-tools.test.ts once 37203 跟进:get_record_context 无权的关联子对象改为省略、真实通道交出可查询字段,并补筛选排序的双通道比对 #37361 lands.
  • The new service test is a new file, as the dispatch order and the claim's file surface direct; the shared executor test file is owned by an in-flight sibling card.

Verification

Real-kernel measurement (scratch, deleted)
MEASURE served-listing rcm_policy fields: organization_id,created_at,created_by,updated_at,updated_by,owner_id,owning_business_unit_id,queue,title
MEASURE served-listing rcm_orgdoc fields: organization_id,created_at,created_by,updated_at,updated_by,title
rcm_brief (fields title, owner_id, created_at; related fields version, owner_id; where owner_id; orderBy created_at desc), sys_user registered:
  fields: title "Fire cover", owner_id (label Owner, notVisible: the sys_user row is not readable to this harness's caller), created_at "2026-11-26T03:16:17.088Z"
  related rcm_revision rows: r1 only (v1, owner_id) -- r2 (owner usr_other) filtered out by the where on owner_id
rcm_c (related fields version, created_at; where owner_id usr_member; orderBy created_at desc): rows r1 only (v1, created_at)
rcm_org_brief (ownership org; fields title, owner_id): fields title only
rcm_b (fields title, owner_id) WITHOUT sys_user registered: PERMISSION_DENIED 403
Ablation (one, on the chosen behaviour)

Deleted the injected-column merge line in fieldMapOf via scripts/ablation-replace.mjs (anchor x1 to x0, blob c2119a56ce9c to 2c8b47c54ad1); validate-ai-context.test.ts went 3 failed / 18 passed (the injected-column case, the ownership-org case through created_at, the body case); restored, blob equals HEAD (c2119a56ce9c), git diff HEAD empty. The lint test imports the rule from source, so no build leg applies.

Package suites and gates

All at head 83f809e90, through the verify lock (VERDICT command-exit 0, 129 s held):

pnpm --filter @objectstack/service-record-context test       Test Files 3 passed (3) · Tests 102 passed (102)
pnpm --filter @objectstack/service-record-context typecheck  exit 0 (tsc --noEmit + check-test-typecheck)
pnpm --filter @objectstack/lint test                         Test Files 235 passed (235) · Tests 9637 passed (9637)
pnpm --filter @objectstack/lint typecheck                    exit 0 (tsc --noEmit + check-test-typecheck)

Gates: node scripts/pm/dispatch-gates.mjs --commands derived 64 families for this diff; all 64 run locally, 62 exit 0, 2 exit 3 (PREREQUISITE NOT MET, read as NOT MEASURED, left to CI): node scripts/check-plugin-teardown-shape.mjs --self-test (its pinned positive control needs an unshallow clone) and pnpm check:dual-build-cjs-loads (reads every package's dist/; only the runtime closure is built here). --ran reconciliation: 64 derived, 62 run, 2 NOT-MEASURED, 0 UNRUN. Package-closure build ahead of these: pnpm --workspace-concurrency=2 --filter '@objectstack/runtime^...' build (includes @objectstack/lint and @objectstack/service-record-context), VERDICT command-exit 0.


Generated by Claude Code

…ted system columns

ai-context-field-unknown warned on owner_id / created_at in a pack on an
object that does not declare them, while get_record_context reads the
published definition, which carries the injected columns, and serves them.

Claude-Session: https://claude.ai/code/session_01Utp6CbeF2saT6wUBV4E9uc
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json ee11fce924ee0be609807738a3e0770cf6c396a3 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 9093ea008d3eb37ec04bb8509820c9666bff48b1 — the merge of head 83f809e905c3ad3d202495a7d304a23ad595662c into base ee11fce924ee0be609807738a3e0770cf6c396a3, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 9093ea008d3eb37ec04bb8509820c9666bff48b1 && git checkout 9093ea008d3eb37ec04bb8509820c9666bff48b1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ee11fce924ee0be609807738a3e0770cf6c396a3 83f809e905c3ad3d202495a7d304a23ad595662c && git checkout -B drift-repro ee11fce924ee0be609807738a3e0770cf6c396a3 && git merge --no-ff 83f809e905c3ad3d202495a7d304a23ad595662c

node scripts/docs-audit/affected-docs.mjs --json ee11fce924ee0be609807738a3e0770cf6c396a3

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 83f809e · 2026-11-26T04:22Z

The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 83f809e905c3ad3d202495a7d304a23ad595662c
Local-runs: none

PR #37426 (card #37415, parent #37177). Read: the card body and its four comments (claim 7181320357, scope note 7181733701, triage 7181895697, os-dev-report 7182515207), the parent body, the PR body, the four-file net diff against origin/main, the head's check-runs (57 success, 11 skipped, 0 failed, no name with a newer failing run), and the cited source on main and on the head. Nothing was built, run or re-run.

① Derived judgments

The diff publishes no schema, no export and no signature change. What it changes is the verdict set of one advisory lint rule, validateAiContext. Each implied change, judged against the runtime:

  1. ai-context-field-unknown no longer fires on an injected column (root fields, related fields, where, orderBy). Right. The lint's merged map is injectedColumnDefsFor(object), which is injectedSystemColumnDefs in packages/spec/src/data/injected-system-column-provenance.ts, gated by resolveInjectedSystemColumns. The registry's applySystemFields (packages/objectql/src/registry.ts) takes its plan from the same function and spreads the same tables, before the schema is stored, so both real doors' publishedObjectDefinitionOf (packages/runtime/src/domains/mcp.ts, packages/mcp/src/stdio-data-bridge.ts) hand the executor that shape. The executor judges every name on those maps (project, childPublished.has). Per mode and kind, lint and registry agree because they share one plan:
    • ownership omitted or user: owner_id, owning_business_unit_id, queue. business_unit: owning_business_unit_id only. org / none: neither. The negative test pins org.
    • sys_* name or any managedBy: no ownership anchors; tenant and audit columns stay. managedBy: 'better-auth' and systemFields: false: nothing. systemFields.audit: false: no audit family. systemFields.tenant: false or tenancy.enabled: false: no organization_id. managedBy: 'synced': the five _sync_ columns.
    • id is in neither map (the driver provisions it and no /meta exit serves it), so a pack naming an undeclared id is still reported and the executor still leaves it out.
    • Merge direction: a declared field wins in the lint, and in the registry (only readonly / system are forced on a declared audit field; type and reference stay the author's). The two questions the rule asks of a definition, its type and its reference target, therefore read the same on both sides.
    • Array-shaped and map-shaped fields both go through recordsOf, so the dev's choice of injectedColumnDefsFor over applyInjectedSystemColumns is correct and total.
  2. One residual where the lint is wider than a given deployment. Accepted, no action. resolveInjectedSystemColumns takes the deployment's platformGlobalObjects as a second argument, and an author-time caller has none. On an object a deployment declares platform-global, the lint accepts organization_id and the registry withholds it. The spec documents this limit and every lint rule that resolves injected columns shares it.
  3. body.field naming an injected column: unknown-field becomes ai-context-body-not-long-text. Right. The executor reads the served definition's type and carries no body for a non-long-text field. Same severity, a truer message.
  4. orderBy sortability now reads the effective map. Right. The executor calls resolveObjectSortability on the whole published definition; the lint calls it on the merged fields. Both give sortable: false for the same two reasons only (virtual type, author's sortable: false). No injected column is virtual, so no new unsortable verdict appears.
  5. (a) On a sys_* root, a child's injected references count as links. Right; it is not a new false warning. resolveRelatedLink (packages/services/service-record-context/src/read-set.ts, identical on main and the head) filters every key of the child's published map whose lookupTargetOf equals the root, and returns a link only when exactly one matches. created_by, updated_by and owner_id are type: 'lookup', reference: 'sys_user' in the published definition. So a child with one declared reference to sys_user and no field has four candidates at run time, the executor resolves no link and leaves the list out with no statement. The old lint silence was the false accept; the new warning is true. This is read, not measured, as the dev says, and my reading confirms it. Three further consequences of the same line, which the PR does not name, each right against the same code:
    • field: 'owner_id' (or created_by) on a sys_user root was reported as no reference and is now accepted. The executor accepts it too.
    • The same holds for organization_id to sys_organization and owning_business_unit_id to sys_business_unit, on every object that carries them.
    • A child with no declared reference to a sys_organization root was reported as having none, and is now silent, because organization_id is its one link. The executor follows that link.
      The warning fires only where stack.objects defines the sys_* root; an app stack that does not define it is skipped by the existing objects.has(root) guard, unchanged.
  6. (b) An ADR-0015 external object: a pack may now name an injected anchor with no storage behind it. The map is right; the silence is a gap. See S2. applySystemFields runs for external objects on purpose, so the published definition carries the anchors and the executor plans them. The lint map therefore matches the runtime exactly. But the read degrades without error (the spec records a filter on such an anchor as constant-false, zero rows), and before this PR the rule happened to warn on those names. packages/lint/src/system-fields.ts says a rule that resolves a reference should also ask unprovisionedInjectedColumnsFor. This rule now resolves and does not ask.

S2 (should-fix) — File a follow-up card for the provenance warning on external objects, and name its number in the PR's acceptance notes. "Noted, not filed" is not enough here: the PR itself removes the only author-surface signal for a pack whose where on an unprovisioned anchor returns an empty list silently, and the lint package's own header prescribes the check. It is a card and not a fix in this PR, because the warning needs its own rule id and os explain entry in rule-explanations.ts, outside this card's file surface. No head move is needed to close it.

N1 (nit) — The changeset and the sys_* test name only the three references to sys_user. Say that organization_id and owning_business_unit_id behave the same on their sys_* roots, and that a lone injected reference is now taken as the link. Prose only.

N2 (nit) — The sys_* root reading in point 5 has no executor pin. When the new test is folded into the shared harness (N3), add one case: sys_user root, a child with one declared reference, no field, list left out.

② Semver level

  • Changeset: right. @objectstack/lint patch, a fix. The diff moves src/** of no other package's shipped code. Check Changeset is success.
  • @objectstack/service-record-context: no changeset owed. Its one file is a new test under src/__tests__/. The package ships dist, README.md and CHANGELOG.md only, so nothing a consumer receives changes. The L1 flag is answered: touched, not published.
  • Metadata-protocol: none: right. No authorable key, value or type is added, narrowed or changed in meaning. AiContextSchema and packages/spec/src/** are untouched; a pack that parsed before parses the same. none beside an all-patch changeset is the pairing ruling A requires.
  • Clause-②: no: right. It does not become yes (widening). The clause asks whether the card widens a published accept set or enlarges the public surface (scripts/pm/clause2-line.mjs; execution-duties.md). Three lines of execution-duties.md decide it:
    • Clause ② reads only the published contract surface, and pulling behaviour back to the declared contract does not touch it.
    • Removing a false refusal that the published contract text already denies is itself no.
    • That no must quote the text; without the quote it reads as no declaration.
      The published contract is ADR-0160. D3 says: "A name the published definition lacks is an author defect". D1 says the related link "is resolved once, on the published definition". An injected column is in the published definition, so the old warning reported as a defect something the contract says is none, and the new sys_* warning reports one the contract already names (field "is required when several do"). Both directions pull the rule back to that text. The public surface is unchanged: no new export, and validateAiContext keeps its signature. The warning refuses nothing at save; it changes an exit status only under os validate --strict. Fleet precedent for a lint advisory that stops or starts firing with no schema or export change is a bare no (changesets 35190, 36052, 36202); 35036 said yes (widening) because it also added a spec export.

S1 (should-fix) — The no owes its quotation. The PR body paraphrases the contract ("reads the object's published definition, which carries those columns") and the code comments tag ADR-0160 D1/D3, but no line quotes the text the declaration rests on. Add the D3 sentence above, with its ADR reference, to the PR body beside the Clause-②: line. The PR body alone closes it; the head does not move.

③ Boundary flags

Dev flags (deviations), each answered:

  • (c) The measurement ran from an untracked scratch file in packages/runtime/src and was deleted. Accepted; the committed evidence is enough for this card. No fenced file is in the diff. The committed service test pins the executor's half: given a door that serves the injected shape, every injected name is read in all four places, and given declared fields only, it is left out silently. The other half, that the real doors serve that shape, is not pinned by this PR. It rests on the reading in ① point 1, on the scratch readings quoted in the PR body, and on sibling PR fix(service-record-context): get_record_context leaves out an unserved related child; both MCP doors supply queryableFieldsOf and their page cap #37412's real-kernel harness for created_at in orderBy. For a p3 advisory whose two sides share one spec table, that is sufficient. Residual, named: no committed test here ties the real-kernel door to this rule for owner_id.
  • (d) A new test file instead of a top-level describe in the shared harness. Deviation from AGENTS.md (ruling record 6583487846), flagged by the dev, with a reason: sibling 37203 跟进:get_record_context 无权的关联子对象改为省略、真实通道交出可查询字段,并补筛选排序的双通道比对 #37361 holds record-context-tools.test.ts. See N3. A review cannot waive a maintainer ruling, so the seat's ACCEPT must name the deviation and its carrier.
  • injectedColumnDefsFor instead of the card's applyInjectedSystemColumns. Right. Same tables, same declared-wins direction, and total over both fields shapes.
  • Waiting on CI, and test:repo not run locally. Process only. Test Core is success on this head and covers the repo project.

N3 (nit) — Fold injected-system-columns.test.ts into record-context-tools.test.ts as a top-level describe once #37361 has landed. Carrier: a line on #37361's card or a small follow-up; the ACCEPT names which.

open_questions: empty. Nothing to answer.

Out-of-scope findings in the report:

  • External objects: answered in ① point 6, S2.
  • The os explain text for ai-context-field-unknown ("a name the object does not define"): still true, since an injected column is defined on the object. No action.
  • The sys_* root: answered in ① point 5, N2.

SQL push-down (AGENTS.md, Prime Directive 5): no finding. The lint change is a pure in-memory merge over metadata. The service change is a test over the fake door. The diff adds no query, no id materialisation and no in-app join.

Gate verdicts on the head: every check-run is success or skipped; none failed and no name repeats with a different newer conclusion.

Findings: S1 and S2 are open should-fix items, both closable without moving the head. N1, N2 and N3 are nits. No must-fix.

Implemented-by: claude/issue-37415-ai-context-injected-columns
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 83f809e905c3ad3d202495a7d304a23ad595662c
REWORK — L1, seat repo:objectstack#5: contract record 7182623911 reads PASS with two should-fix findings. Both close without moving the head (a PR-body line and a card); the rest of L1 reads clean.

  1. Shape: open draft against main, 4 files (+201/−4), Clause-②: no, Metadata-protocol: none, @objectstack/lint patch. l1-face flags changeset on @objectstack/service-record-context. That flag is a false positive: the only file there is a test under src/__tests__/, and the package ships only dist. Check-runs: 57 success, 11 expected skip, 0 failed.
  2. Premise: the record finds the lint's merged map equal to what the runtime injects for every ownership mode and object kind, because both read resolveInjectedSystemColumns. On (a), the sys_* root ambiguity is the runtime's own resolveRelatedLink answer over the published definition, so the old silence was the false accept, not a new false warning. No SQL push-down finding.
  3. Owed before ACCEPT:
    • S1. The bare Clause-②: no owes its quotation. Add ADR-0160 D3's "A name the published definition lacks is an author defect" beside the line in the PR body. Removing a false refusal the published text already denies is no only with that quote.
    • S2. (b) is a real gap. On an ADR-0015 external object the read degrades silently, and this PR removes the only author-surface signal. File a follow-up card under 37177 跟进:资料包校验对平台注入字段(owner_id)误报 ai-context-field-unknown #37415 for a provenance warning (unprovisionedInjectedColumnsFor, its own rule id and os explain entry), and name its number in the PR's acceptance notes.
      The same reviewer reads the delta on this head.
  4. Accepted deviations:
  5. Out of scope and where it went: the external-object provenance warning goes to the S2 card, and the harness fold goes to the same carrier.
  6. Landing terms: ungoverned, default tier. A same-head PASS with S1 and S2 closed and an ACCEPT are owed. The area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 83f809e905c3ad3d202495a7d304a23ad595662c
Local-runs: none

Delta re-read of record 7182623911, on the same head. The head did not move: the PR still reads 83f809e905c3ad3d202495a7d304a23ad595662c, so the diff is the one already reviewed and ①②③ of that record stand as written. Read for this delta: the current PR body, card #37432 (body, labels, parent), the head's check-runs, and readClause2Line in scripts/pm/clause2-line.mjs. Nothing was built, run or re-run; the parse below is read from the reader's source, not executed.

① Derived judgments

No change to any judgment. One finding moves:

S2: closed. Card #37432 is open, area:ai, priority:p3, pm:blocked, and its parent endpoint answers #37415. Its body covers what S2 asked for: unprovisionedInjectedColumnsFor wired into every place validateAiContext reads a field map, under its own rule id with an os explain entry, and an acceptance line that pins the warning on an external object and its absence on a non-external one. It is blocked on PR #37426 and PR #37412 reaching main, which is the right order. The PR's acceptance note now reads "Filed as #37432" in place of "Noted, not filed".

N1 (nit) — Still open, prose only: the changeset names only the three references to sys_user. It does not block.

N2 (nit) — Still open and without a carrier: #37432 folds the test file but does not ask for the sys_user root executor case. Add one line to #37432 when it is dispatched. It does not block.

② Semver level

S1: closed. The PR body's line now reads Clause-②: no (ADR-0160 D3: "A name the published definition lacks is an author defect"; an injected column is in the published definition, so the warning on it was the defect). The quotation matches ADR-0160 D3 word for word, so the no carries the text execution-duties.md requires of it. Read against readClause2Line: the key is at line start, named once and not inside a code span, so the line is a declaration attempt; no is the first token after the colon; the parenthetical opens with ADR, which is neither arm spelling nor a word of the arm family, so readArmToken returns no arm and no bad token. The line reads as declared no with no direction arm, the same reading the bare line had. Metadata-protocol: none on the next line is unchanged. The changeset file in the tree still carries the bare Clause-②: no; the two carriers agree on value and arm, and S1 asked for the PR body only.

Gate state after the body edit: PR-body guards re-ran at 04:30:34Z and is success. Check Changeset re-ran at 04:30:33Z and was still in_progress when this record was written, after repeated reads; its earlier run on this head (03:50:38Z) is success. The newer run governs once it concludes. The seat reads its conclusion before the landing pre-check; a red there reopens S1 and this record does not cover it.

③ Boundary flags

No change to any answer. Two carriers are now on a card:

SQL push-down: unchanged, no finding. The diff is the same.

Findings: no must-fix and no should-fix remain open. N1 and N2 are open nits.

Implemented-by: claude/issue-37415-ai-context-injected-columns
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 83f809e905c3ad3d202495a7d304a23ad595662c
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 4 files (+201/−4), Clause-②: no (ADR-0160 D3: "A name the published definition lacks is an author defect"; …), Metadata-protocol: none, @objectstack/lint patch. l1-face's changeset flag on @objectstack/service-record-context is a false positive: its one file is a test, and the package ships only dist.
  2. Rework closed (delta contract record 7182700579, same head): S1 (the clause line quotes ADR-0160 D3), S2 (37415 跟进:资料包校验对外部对象的注入字段给出「无存储」提醒,并合并测试文件 #37432 filed under 37177 跟进:资料包校验对平台注入字段(owner_id)误报 ai-context-field-unknown #37415 for the external-object provenance warning, named in the acceptance note), N3 (37415 跟进:资料包校验对外部对象的注入字段给出「无存储」提醒,并合并测试文件 #37432 item 3 carries the harness fold after 37203 跟进:get_record_context 无权的关联子对象改为省略、真实通道交出可查询字段,并补筛选排序的双通道比对 #37361).
  3. Gates: check-runs at 83f809e905: all success or expected skip, 0 failed. PR-body guards re-ran green after the body edit. The Check Changeset re-run from the body edit (04:30:33Z) was still in progress at this ACCEPT; the earlier run on this head is green. The landing pre-check reads the newer run, and a red there reopens S1.
  4. Accepted deviations:
  5. Out of scope and where it went: the external-object provenance warning, the ai-context-field-unknown explain text and the harness fold go to 37415 跟进:资料包校验对外部对象的注入字段给出「无存储」提醒,并合并测试文件 #37432.
  6. Landing terms: ungoverned, default tier. L2 at CONTRACT_REVIEW_TIER: PASS, comment 7182700579, same head, no must-fix, no should-fix. The area lands it once Check Changeset concludes green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

Landing: ACCEPT 7182715779 (delta L2 PASS 7182700579) at head 83f809e905c3ad3d202495a7d304a23ad595662c.

Probe Reading
Check-runs on head 59 success, 13 skipped, 0 failed, 0 pending; the Check Changeset re-run from the body edit (04:30:33Z) concluded success
Governed / size check-governed-merges --pr 37426: NOT governed, 205 changed lines ≤ 3000; mergeable_state clean

Status: ready + auto-merge (merge queue). On MERGED, #37415 closes by Fixes; #37432 waits on #37412 as well.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 04:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

37177 跟进:资料包校验对平台注入字段(owner_id)误报 ai-context-field-unknown

2 participants